package com.whfc.fuum.utils;

import com.whfc.fuum.entity.SysUser;
import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Component;

/**
 * @author ：pyl
 * @date ：Created in 2022/7/14 18:50
 * @description：TODO
 */
@Component
public  class UserUtils {
    public static SysUser getLoginUser() {
        SysUser sysUser = (SysUser) SecurityUtils.getSubject().getPrincipal();
        return sysUser;
    }
}
